package com.example.tsproject.mapper;

import com.example.tsproject.entity.Posts;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import com.example.tsproject.entity.PostsWithTeacher;

import java.util.List;

/**
* @author DELL
* @description 针对表【posts】的数据库操作Mapper
* @createDate 2024-09-24 21:09:03
* @Entity com.example.tsproject.entity.Posts
*/
@Mapper
public interface PostsMapper extends BaseMapper<Posts> {

    List<Posts> getPostById222(@Param("sql") String sql);

    List<PostsWithTeacher> selectPostsWithTeachers();
}




